﻿using Script.UI;
using Script.UI.Component;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using System;
using MTUnity.Utils;

public class UI_Histogram_SortingCount : UI_Histogram<HistogramData_SortingCount>
{
    public HistogramDisplay Histogram_DisplayInterface_Completed;
    public Text Txt_SortingCount;
    public Text Txt_Time;

 

    protected override void OnRefresh()
    {
        DateTime dt = TimeUtil.FromTimestamp(Data.Timestamp);
        Txt_Time.text = dt.Day.ToString();
        Txt_SortingCount.text = Data.Current.ToString();

        Histogram_DisplayInterface_Completed.SpecificMaxValue = (int)Data.Max;
        Histogram_DisplayInterface_Completed.SpecificMinValue = (float)Data.Min;
        Histogram_DisplayInterface_Completed.CurrentValue = (float)Data.Current;
    }
}
